Fix code and doc involving marked items.
authorStephen Berman <stephen.berman@gmx.net>
Fri, 25 Jul 2014 16:01:05 +0000 (18:01 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Fri, 25 Jul 2014 16:01:05 +0000 (18:01 +0200)
commitab36e33f8b618cd069332e390f5da448574a5023
tree3aa82a8843e35588a230f20d4af921af5225fd70
parente5bf839b19490beacb678aca9456b08d6bf4b993
Fix code and doc involving marked items.

* todo-mode.texi (Marked Items): Correct omission of item deletion
from commands applying to both todo and done items.

* calendar/todo-mode.el: Fix handling of marked items and make
minor code improvements.
(todo-edit-item): If there are marked items, ensure user can only
invoke editing commands that work with marked items.
(todo-edit-item--text): When there are marked items, make it a
noop if invoked with point not on an item; otherwise, ensure it
applies only to item at point.
(todo-item-undone): If there are marked not-done items, return
point to its original position before signaling user error.
(todo--user-error-if-marked-done-item): New function.
(todo-edit-item--header, todo-edit-item--diary-inclusion)
(todo-item-done): Use it.
doc/misc/ChangeLog
doc/misc/todo-mode.texi
lisp/ChangeLog
lisp/calendar/todo-mode.el